#include<stdio.h>
int main()
{
	double r,h,pi=3.14159;
	scanf("%lf%lf",&r,&h);
	printf("Area=%.3f",pi*r*2*h+2*pi*r*r);
    return 0;
}

